[#include "../include/html_header.html"/]
    <script src="${root}/js/cart_sure.js" type="text/javascript"></script>
    <script type="text/javascript">
        var URLPrefix = {
            "url": "${base}"
        };
    </script>
</head>
<body>
[#include "../include/html_header_top.html"/]


<div class="am-g am-g-fixed">

        <div class="am-g">
            [#if order??]
            <div class="am-text-center am-text-xl am-margin-top-lg">您的订单已提交成功，[#if order.payment??][#if
                order.payment.type=1]正在等待您的付款！[#else]正在等待处理！[/#if][/#if]
            </div>
            <table class="am-table">
                <tr>
                    <th colspan="4">订单信息:</th>
                </tr>
                <tr>
                    <td width="100">订单编号:</td>
                    <td width="340">
                        <strong>${order.code}</strong>
                        <a href="myOrderView.htm?orderId=${order.id}">[查看订单]</a>
                    </td>
                    <td width="100">应付金额:</td>
                    <td>
                        <strong id="amountPayable">￥${order.total!0}元</strong>
                    </td>
                </tr>
                <tr>
                    <td>配送方式:</td>
                    <td>[#if order.shipping??]${order.shipping.name}[/#if]</td>
                    <td>支付方式:</td>
                    <td>[#if order.payment??]${order.payment.name}[/#if]</td>
                </tr>

                [#if order.payment??][#if order.payment.type=1]
                <tr>
                    <td colspan="4">请您在提交订单后<span style="color:red">24小时</span>内完成支付，否则订单会自动取消。</td>
                </tr>
                [/#if][/#if]


            </table>
            [#if order.payment??]
            [#if order.payment.type=1]
            <form id="baseForm" action="${base}/pay.htm" method="post">
                <table class="paymentPlugin">
                    <tr>
                        <th>支付方式:</th>
                    </tr>
                    <tr>
                        [#list list as p]
                        <td>
                            <input type="radio" name="code" value="${p.code!}" [#if p_index=0]checked[/#if]/>
                            <label>
                                <em title="${p.name}"
                                    style="background-image: url(${p.imgPath});width:135px;height:45px;">&nbsp;</em>
                                ${p.name}
                            </label>
                        </td>
                        [/#list]
                    </tr>
                </table>
                <input type="hidden" name="orderId" value="${order.id}"/>
               <div class="am-align-right"><input type="submit" class="am-btn am-btn-warning" value="立即支付"/></div>
            </form>
            [#else]
            ${order.payment.description!}
            [/#if]
            [/#if]
            [#else]
            订单重复提交！
            [/#if]

        </div>

    </div>

[#include "../include/footer.html"/]
</body>
</html>
